// #ifdef VUE3
import App from "./App.vue";
import TabBar from "./components/TabBar.vue";
import { createSSRApp } from "vue";
import { pinia } from "./stores"; // 从 stores/index.ts 导入

export function createApp() {
  const app = createSSRApp(App);
  app.use(pinia); // 使用预配置的 Pinia
  app.component("TabBar", TabBar);
  return {
    app,
    pinia,
  };
}
// #endif
